package com.ruoyi.residents.controller;

import com.ruoyi.pojo.TbResidentLabels;
import com.ruoyi.residents.service.TbResidentLabelsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("residentLabels")
public class TbResidentLabelsController {

    @Autowired
    private TbResidentLabelsService tbResidentLabelsService;

    @GetMapping("findAll")
    public List<TbResidentLabels> findAll(){
        return tbResidentLabelsService.list();
    }
}
